extends Area2D

const BULLET_SPEED = 600

# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	add_to_group("bullets")
	$CollisionShape2D.disabled = false


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
	position += Vector2.UP * BULLET_SPEED * delta


func _on_visible_on_screen_notifier_2d_screen_exited() -> void:
	queue_free()
